﻿#ifndef MEASURE_SECTOR_H
#define MEASURE_SECTOR_H
#include "halconcpp/HalconCpp.h"
using namespace HalconCpp;

struct M_Se
{

    //换算比值
    float para1;
    //弧边1--------------------
    //补偿值
    float para3;
    //标准值
    float para4;
    //上限值
    float para5;
    //下限值
    float para6;

    //弧边2------------------------
    //补偿值
    float para7;
    //标准值
    float para8;
    //上限值
    float para9;
    //下限值
    float para10;

    //直边3----------------------
    //补偿值
    float para11;
    //标准值
    float para12;
    //上限值
    float para13;
    //下限值
    float para14;

    //直边4----------------------
    //补偿值
    float para15;
    //标准值
    float para16;
    //上限值
    float para17;
    //下限值
    float para18;

    //中直边5----------------------
    //补偿值
    float para19;
    //标准值
    float para20;
    //上限值
    float para21;
    //下限值
    float para22;

    //图像处理-----------------
    //定位阈值
    float para23;

    //总体补偿值
    float para2;
    //轮廓度上限值
    float para24;
};
struct M_Se_PLACE
{
    HalconCpp::HTuple x1;
    HalconCpp::HTuple y1;
    HalconCpp::HTuple x2;
    HalconCpp::HTuple y2;
    HalconCpp::HTuple hvCCDHandle;
};
class Measure_Sector
{
public:
    Measure_Sector();
	int M_Sector(HObject Img, HTuple ModelID, HTuple &OutPara, HObject &OutImg);
	HTuple CameraParameters;
	HObject Map;

public:
    M_Se m_part;
    M_Se_PLACE m_part2;
    bool Flag1;
    bool Flag2;
    bool Flag3;
    bool Flag4;
    bool Flag5;
    //轮廓度
    bool Flag6;

	//**大于上限值
	bool Flag11;
	bool Flag22;
	bool Flag33;
	bool Flag44;
	bool Flag55;
	bool Flag66;
};

#endif // MEASURE_SECTOR_H
